package com.codingvip.tree;

import java.util.TreeMap;

/**
 * @Author Tony.Han
 * @Created at 2020/4/6 5:22 下午
 * Desc:
 */
public class RedBlackTest {
    public static void main(String[] args) {
        TreeMap<Integer, String> treeMap = new TreeMap<>();
        treeMap.put(55, "55");
        treeMap.put(56, "56");
        treeMap.put(57, "57");
        treeMap.put(58, "58");
        treeMap.put(83, "83");
        treeMap.remove(57);
        treeMap.put(59, "59");

        System.out.println(treeMap);
    }

}
